XHTML is a web coding language that unites the expressive depth of the HTML standard with the stricter requirements of XML, resulting in a coding standard that is more compatible with various browsers and applications, is capable of being parsed, and furthers the customization abilities inherent in HTML.
As opposed to HTML, the requirements of XHTML are such that all elements (both empty and non-empty) must be closed, properly nested, and in lowercase letters. Additionally, all attribute values must be enclosed in double-quotes. The use of a DOCTYPE reference tag is mandatory. Also, many text formatting tags common to HTML are forbidden in XHTML, forcing authors instead to rely on internal and external CSS coding.
Group Assignment 3 - Section B
Group 12
Introduction
XHTML is a web coding language that unites the expressive depth of the HTML standard with the stricter requirements of XML, resulting in a coding standard that is more compatible with various browsers and applications, is capable of being parsed, and furthers the customization abilities inherent in HTML.
As opposed to HTML, the requirements of XHTML are such that all elements (both empty and non-empty) must be closed, properly nested, and in lowercase letters. Additionally, all attribute values must be enclosed in double-quotes. The use of a DOCTYPE reference tag is mandatory. Also, many text formatting tags common to HTML are forbidden in XHTML, forcing authors instead to rely on internal and external CSS coding.
Changes to Common Tags
HTML
XHTML
Changes to Code Snippets
• All free-floating text needs to be embedded properly using opening and closing paragraph tags.
• All tags must be ended properly either by using a self closing tag or by a standard closing tag.
• All non-empty tag elements must be closed like the example.
• All valid XHTML documents must have one (and only one) root element.
• All images displayed must include alternate text to display in lieu of the image file itself.
Valuable Web Resources
• W3C Schools: http://www.w3schools.com/xhtml/
• The Web Standards Project: http://www.webstandards.org/learn/articles/askw3c/oct2003/
• Code Project: http://www.codeproject.com/html/htmltoxhtml.asp